
package com.scs.application.modules.settlement.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.modules.settlement.entity.InvoiceItem;
import com.scs.application.modules.settlement.request.InvoiceItemQueryRequest;
import com.scs.application.modules.settlement.vo.InvoiceItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发票单明细 mapper对象
 */
@Mapper
public interface InvoiceItemMapper extends BaseMapper<InvoiceItem> {

    /**
     * 发票单明细 关联页
     *
     * @param page
     * @param request
     * @return
     */
    IPage<InvoiceItemVO> pageForRelate(IPage page, @Param("request") InvoiceItemQueryRequest request);

    /**
     * 发票单明细 查看页
     *
     * @param page
     * @param request
     * @return
     */
    IPage<InvoiceItemVO> pageForView(IPage page, @Param("request") InvoiceItemQueryRequest request);

    List<InvoiceItemVO> listForView(@Param("request") InvoiceItemQueryRequest request);

    List<InvoiceItemVO> listForViewByHrpKey(@Param("request") InvoiceItemQueryRequest request);
}
